import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'admin/SysClasses/add',
    method: 'post',
    data
  })
}

export function del(obj) {
  return request({
    url: 'admin/SysClasses/del-class',
    method: 'post',
    data: obj
  })
}

export function edit(data) {
  return request({
    url: 'admin/SysClasses/edit',
    method: 'put',
    data
  })
}

/**
 * 学校列表
 * @param data
 * @returns {*}
 */
export function tenantList() {
  return request({
    url: 'admin/SysTenant/list',
    method: 'get'
  })
}

export default { add, edit, del,tenantList }
